﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ulement.Web;

public partial class TinTuc : System.Web.UI.Page
{
    int lang = 2;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!this.IsPostBack)
        {

            if (Request.QueryString["lang"] != "" && Request.QueryString["lang"] != null) lang = Convert.ToInt32(Request.QueryString["lang"]);
            lbPageName.Text = "Hot news";
            lbTinTuc1.Text = "Business News";
            lbTinTuc2.Text = "Interdist People";
            lbTinTuc3.Text = "Interdist Group News";
            if (lang == 1)
            {
                lbPageName.Text = "Tin tức";
                lbTinTuc1.Text = "Tin kinh tế";
                lbTinTuc2.Text = "Nhân tài Interdist";
                lbTinTuc3.Text = "Văn hóa Interdist";
            }

        }
    }

    public string LinkTinTucDetail(object ID)
    {

        HttpUrlQuery ur = new HttpUrlQuery(Page.Request.QueryString);
        string tukhoa = ur.Get("lang");

        return "News.aspx?loai=" + ID + "&lang=" + tukhoa;
    }
}